<?phpclass BackendController extends Controller{    public $layout = '//backend/index';    public function __construct($id, $module = null)    {        parent::__construct($id, $module);        if (!Yii::app()->user->id) {            $this->redirect(array('/site/login'));        }    }}